package com.hsqn.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订餐表
 * </p>
 *
 * @author lingwenjie
 * @since 2025-11-05
 */
@Getter
@Setter
@TableName("meal_order")
public class MealOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 老人ID
     */
    private Long elderlyId;

    /**
     * 用餐日期
     */
    private LocalDate mealDate;

    /**
     * 餐型(1-早餐,2-午餐,3-晚餐)
     */
    private Byte mealType;

    /**
     * 菜单ID
     */
    private Long menuId;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 总金额
     */
    private BigDecimal totalAmount;

    /**
     * 订单状态(0-待确认,1-已确认,2-已取消,3-已完成)
     */
    private Byte orderStatus;

    /**
     * 支付状态(0-未支付,1-已支付)
     */
    private Byte paymentStatus;

    /**
     * 送餐地址
     */
    private String deliveryAddress;

    /**
     * 联系电话
     */
    private String contactPhone;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
}
